package cn.wolfcode.crm.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter
@Getter
public class CustomerTraceHistory {
    private Long id;
    //跟进时间,贴上注解
    //把前段传过来的额日期字符串按照pattern规定的格式解析成date类型的对象
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date traceTime;
    //跟进内容
    private String traceDetails;
    //跟进方式.数据字典关联,所以返回值类型是明细表
    private SystemDictionaryItem traceType;
    //跟进结果
    private Integer traceResult;
    //备注
    private String remark;
    //客户,客户也是关联,返回值是客户表
    private Customer customer;
    //录入人,录入人也是关联表,想对象的数据库也要通过他的id来获取对象
    private Employee inputUser;
    //录入时间
    private Date inputTime;
    //跟进类型
    private Integer type;


}